function setCameraInputStatus(targetStatus) {
    // to control whether the user can input
    const viewer = window.viewer.viewerInstance;
    if(viewer && viewer != null) {
        var inputController = viewer.scene.screenSpaceCameraController;
        // property of 'enableInput' is auto controlled by Cesium
        inputController.enableRotate = targetStatus;
        inputController.enableTranslate = targetStatus;
        inputController.enableZoom = targetStatus;
        inputController.enableTilt = targetStatus;
        inputController.enableLook = targetStatus;
    }
}

export default {
    setCameraInputStatus,
}